{% extends "base.html" %}
{% block title %}Eliminar Relaci&oacute;n{% endblock %}
{% block body %}
    <h2>Eliminar Relaci&oacute;n</h2>
    {% if error %}<div class=error><strong>Error:</strong> {{ error }}</div>{% endif %}
    <form name="" action="" method=post>
        <table>
            <tr>
              <td>Seleccionar</td>
              <td>Item Origen</td>
              <td>Item Destino</td>
            </tr>
            {% for relacion in relaciones %}
            <tr>
                <td><input type=checkbox name=seleccionados value="{{ relacion.id }}"></td>
                <td class="c1">{{relacion.origen}}</td>
                <td class="c2">{{relacion.destino}}</td>
            </tr>
            {% endfor %}
        </table>
        <table>
            <tr>
                <td><input type=submit name="action" value="Eliminar" onclick="return confirm('¿Está seguro?');"></td>
                <td><button type=submit name="action" value="Salir" onclick="return confirm('Los datos no serán almacenados');">Cancelar</button></td>
            </tr>
        </table>
    </form>
{% endblock %}
